import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useToutiaoStore = defineStore('my-toutiao', () => {
  const channelId = ref(0) // 0 代表推荐
  const changeChannelId = (id: number) => {
    channelId.value = id
  }

  // 别忘记
  return {
    channelId,
    changeChannelId
  }
})
